<?php
/**
 * @author PeoneEr
 * 
 */
?>
<div id="menubar">
    <div id="menu">
        <ul class="menu">
            <?php
            if (!isset($_GET['del_all_bans']) && !isset($_GET['add_ban']) && !isset($_GET['add_prem']) && !isset($_GET['control']) && !isset($_GET['bans']) && !isset($_GET['premiums']) && !isset($_GET['settings']))
                $selected = "first active current";
            else
                unset($selected);
            ?>
            <li class="level1 item1 <?php echo $selected; ?>"><a href="index?adm" class="level1 item1 first active current"><span class="bg">Главная</span></a></li>
            <?php
            if (isset($_GET['control']))
                $selected = "first active current";
            else
                unset($selected);
            ?>
            <li class="level1 item2 <?php echo $selected; ?>"><a href="index?adm&control" class="level1 item1 <?php echo $selected; ?>"><span class="bg ">Управление</span></a></li>                            <?php
            if (isset($_GET['settings']))
                $selected = "first active current";
            else
                unset($selected);
            ?>
            <li class="level1 item4 <?php echo $selected; ?>"><a href="index?adm&settings" class="level1 item3 <?php echo $selected; ?>"><span class="bg ">Настройки</span></a></li>
        </ul>
    </div>
</div>